package com.szmmsoft.mp.common.constant;

/**
 * Description of the class.
 *
 * @author ethan
 * @version 1.0.0
 * @since 2024-10-15
 */
public class Constants {
    /**
     * 请求ID 返回给前端，日志打印
     */
    public static final String REQ_ID = "requestId";

    /**
     * 签名
     */
    public static final String SIGN_KEY = "sign";

    /**
     * 签名时间戳
     */
    public static final String SIGN_TIME_KEY = "timeStamp";
    /**
     * 签名过期时间
     */
    public static final Long SIGN_EXPIRE_TIME = 15 * 60 * 1000L;
    /**
     * token
     */
    public static final String TOKEN = "token";


    /**
     * 账号登录 URI
     */
    public static final String LOGIN_URI_V1 = "/api/auth/v1/account";

    /**
     * 退出 URI
     */
    public static final String LOGOUT_URI = "/auth/logout";

    /**
     * 默认时间格式
     */
    public static final String DEFAULT_DATETIME_PATTERN = "yyyy-MM-dd HH:mm:ss";
    /**
     * 默认时间格式
     */
    public static final String DEFAULT_DATE_FORMAT = "yyyy-MM-dd";
    /**
     * 默认时间格式
     */
    public static final String DEFAULT_TIME_FORMAT = "HH:mm:ss";
}
